package com.yubest.designpattern.struct.adapter;

import lombok.AllArgsConstructor;

/**
 * 适配器-对象适配
 *
 * 让鸡冒充鸭子
 *
 * @Author: hweiyu
 * @Date: 2022/10/26 14:11
 */
@AllArgsConstructor
public class ChickenObjectAdapter implements Duck {

    private Chicken chicken;

    @Override
    public void quack() {
        chicken.gobble();
    }
}
